﻿using AgencyManagerSystem.Common;
using Dapper.Contrib.Extensions;

namespace AgencyManagerSystem.Model
{
    [Table("BAS_ELEMENT")]
    public class ElementModel : DBModel
    {
        public string Code { get; set; }
        public string Note { get; set; }
        public int Production { get; set; }
        public string ProductionCode { get; set; }
        public string ProductionName { get; set; }
        public string ProductionStd { get; set; }
        [MainIdAttribute]
        public int Combination { get; set; }
        public decimal Quantity { get; set; }
        public int Dimension1 { get; set; }//当该值为-1时，取明细档案的取订单选取的组合装的值，此值也可以是具体值
        public int Dimension2 { get; set; }
        public int Dimension3 { get; set; }
        public int Dimension4 { get; set; }
        public int Dimension5 { get; set; }
        public decimal Dimension6 { get; set; }//本字段为系数，参照combination的结果与本系数的乘积，若该值为1，则直接从combination带进，若该值为0，则该值无效
        public decimal Dimension7 { get; set; }
        public decimal Dimension8 { get; set; }
        public decimal Dimension9 { get; set; }
        public decimal Dimension10 { get; set; }
    }
}
